function I(n){const e=`--govuk-breakpoint-${n}`,t=window.getComputedStyle(document.documentElement).getPropertyValue(e);return{property:e,value:t||void 0}}function w(n,e={}){var t;const o=n.getAttribute("tabindex");o||n.setAttribute("tabindex","-1");function i(){n.addEventListener("blur",r,{once:!0})}function r(){var s;(s=e.onBlur)==null||s.call(n),o||n.removeAttribute("tabindex")}n.addEventListener("focus",i,{once:!0}),(t=e.onBeforeFocus)==null||t.call(n),n.focus()}function T(n,e){return n instanceof HTMLElement&&n.hasAttribute(`data-${e}-init`)}function N(n=document.body){return n?n.classList.contains("govuk-frontend-supported"):!1}function F(n){return Array.isArray(n)}function a(n){return!!n&&typeof n=="object"&&!F(n)}function g(n,e){return`${n.moduleName}: ${e}`}class b extends Error{constructor(...e){super(...e),this.name="GOVUKFrontendError"}}class O extends b{constructor(e=document.body){const t="noModule"in HTMLScriptElement.prototype?'GOV.UK Frontend initialised without `` from template `